//
//  OrderProductView.m
//  ai2ban
//
//  Created by Heartbeats on 2018/2/3.
//  Copyright © 2018年 mac book pro. All rights reserved.
//

#import "OrderProductView.h"

@interface OrderProductView()
@property (weak, nonatomic) IBOutlet UIImageView *productImgV;
@property (weak, nonatomic) IBOutlet UILabel *productName;
@property (weak, nonatomic) IBOutlet UILabel *productPrice;
@property (weak, nonatomic) IBOutlet UILabel *productNumber;

 
@end

@implementation OrderProductView

- (void)setProdModel:(ProductModel *)prodModel {
    _prodModel = prodModel;
    [self.productImgV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", ImageBaseUrl, prodModel.picImg]]];
    self.productName.text = prodModel.productName;
    self.productPrice.text = [NSString stringWithFormat:@"¥%@", prodModel.productScore];
    self.productNumber.text = [NSString stringWithFormat:@"x%@", prodModel.productCount];
}
@end
